package com.banggood.upms.bean.vo.search;

import com.banggood.upms.bean.vo.validation.SearchGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * @author XuChuangFeng
 */
@Data
@ApiModel(value = "树与树映射搜索条件", description = "负责接收封装调用者传入的参数")
public class TreeTreeSearchCriteria extends BaseSearchCriteria {

    @ApiModelProperty(value = "终止树节点的类型")
    @Pattern(regexp = "(ROLE)", message = "{validation.TreeTreeSearchCriteria.toTreeType.Pattern}", groups = {SearchGroup.class})
    private String toTreeType;

    @ApiModelProperty(value = "起始树节点的主键")
    @NotNull(message = "{validation.TreeTreeSearchCriteria.fromTreeId.NotNull}", groups = {SearchGroup.class})
    private String fromTreeId;
}
